#!/bin/bash
for item in class1 class2 class3;
do
	echo "打印${item}"
done

echo "---------------------"

sum=0
for (( i=1;i<=100;i++));
do   
	if [ $(($i%2)) -eq 0 ];then
                sum=$(($sum+$i))

        fi



done
echo "1-100的偶数和是$sum"

sum2=0
for (( i=1;i<=100;i++));
do
	if ((i%2 != 0));then
		sum2=$(($sum2+$i))
	fi
	done
	echo "1-100的奇数和是$sum2"


exit 0
